package com.gigi.mapper.manual;

import com.gigi.model.CourseDO;
import com.gigi.model.StudentCourseDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseManualMapper {

    List<CourseDO> listCourseForTeacher(@Param("ifByPage") Integer ifByPage,
                                        @Param("userId") Long userId,
                                        @Param("name") String name,
                                        @Param("flag") Integer flag,
                                        @Param("startIndex") Integer startIndex,
                                        @Param("pageSize") Integer pageSize);

    List<StudentCourseDO> listCourseForStudent(@Param("ifByPage") Integer ifByPage,
                                               @Param("userId") Long userId,
                                               @Param("name") String name,
                                               @Param("flag") Integer flag,
                                               @Param("startIndex") Integer startIndex,
                                               @Param("pageSize") Integer pageSize);

    CourseDO searchCourse(@Param("no") Long no);
}
